#include<stdio.h>
#include<stdlib.h>
//#include<gtk/gtk.h>

#include "../matrix.h"

#define PI 3.1415926535

int main(int argc, char* args[]){
	float *view;
	float p[4] = {1, 1, 1, 1};
	float j[4] = {0, 1, 0, 1};
	float v[4] = {1, 1, 1, 1};
	float rv[4] = {0, 0, 0, 0};
	int i;
	
	float theta = (float)(45 * PI/180);
	
	cross(v, p, j);
	
	rotateByOrigin(rv, theta, v[0], v[1], v[2], p);
	
	printf("\n v(%f, %f, %f)", v[0], v[1], v[2]);
	printf("\n p(%f, %f, %f)", rv[0], rv[1], rv[2]);
	//view = (float*)malloc(sizeof(float) * 16);
	//lookAtM(view, 0, 0, 3, 0, 0, 0, 0, 1, 0);
	
	//printf("\n");
	//for(i=0; i< 4; i++){
	//	printf("%f\t%f\t%f\t%f\n", view[i*4], view[i*4+1], view[i*4+2], view[i*4+3]);
	//}
	
	//free(view);
	
	return 0;
}